package com.system.orderserver.service;

import com.system.orderserver.result.*;

import java.util.List;

public interface OrderService {
    OrdersInfo_Result selectOrderInfo(Integer orderId);

    String deleteOrder(Integer orderId);

    List<OrdersList_Result> selectOrders(Integer page,Integer limit,String orderNo, Integer ordersState, String startTiem, String endTiem);

    Integer countOrder(String orderNo, Integer ordersState, String startTiem, String endTiem);

    String addOrder(Integer userId, Integer couponId, Integer ordersState, Integer harvestType, Integer paymentMethod, Integer logisticsId, Integer selfAddressId, Integer userAddressId, String goodsId, String goodsNumber, String specificationsId);

    List<NotDeliveredOrdersResult> selectNotDeliveredOrders(Integer page, Integer limit);

    Integer selectNotDeliveredOrdersCount();

    String deliverGoods(Integer orderId,String logisticsNo);

    List<ExceptionOrder_Result> selectExceptionOrder(Integer page, Integer limit, Integer orderId, String startTime, String endTime, String userName, Integer exceptionOrdersSpeed);


    String returnGoods(Integer orderId,Integer state);

    String handleExceptionOrder(String adminName, Integer orderId,Integer yesNo);



 

    Boolean orderPay(Integer orderId);

    List<UserOrder_Result> userSelectOrders(Integer userId, Integer page, Integer limit);

    Integer countUserOrder(Integer userId);

    Integer countExceptionOrder(Integer orderId, String startTime, String endTime, String userName, Integer exceptionOrdersSpeed);
}
